﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FeaturedCars.aspx.vb"
    Inherits="VintageCars.Details" MasterPageFile="~/Masterpage.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <p>
        MOPAR, Mustangs and meaty motors – they are all part of this inspiring Top 10 list
        of the best classic American muscle cars, unlike the 2011 new cars today that pose
        as muscle cars. Sure, some cars such as Porsche, Lamborghini and Ferrari could be
        categorized as muscle, but those cars were built with a different richer clientele
        in mind. The true muscle car was built for the everyday American who would spend
        from $500 to a couple grand more in the late 60s and early 70s for that one jaw-dropping
        feature – more power! Through the ages, boys have always been attracted to their
        toys, these toys just happened to be bigger, badder and with a lot more muscle than
        their standard counterparts.</p>
    <br />
    <div style="position: relative; vertical-align: top; height: 300px; overflow: auto;
        width: 1065px">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
            DataSourceID="camcDB" AllowSorting="True" Width="1055px" CellPadding="3" ToolTip="Click on the Image for details..">
            <RowStyle CssClass="gridview-row" />
            <SelectedRowStyle BackColor="#e17009" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="Vehicle_Name" HeaderText="Name" SortExpression="Vehicle_Name">
                    <HeaderStyle HorizontalAlign="Center" BackColor="Silver" ForeColor="Black" Font-Bold="True">
                    </HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Vehicle_RegNo" HeaderText="Registration Number" SortExpression="Vehicle_RegNo">
                    <HeaderStyle HorizontalAlign="Center" BackColor="Silver" ForeColor="Black" Font-Bold="True">
                    </HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Vehicle_Year" HeaderText="Manufactured Year" SortExpression="Vehicle_Year">
                    <HeaderStyle HorizontalAlign="Center" BackColor="Silver" ForeColor="Black" Font-Bold="True">
                    </HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Vehicle_EngSize" HeaderText="Engine Size (cc)" SortExpression="Vehicle_EngSize">
                    <HeaderStyle HorizontalAlign="Center" BackColor="Silver" ForeColor="Black" Font-Bold="True">
                    </HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Vehicle_Make" HeaderText="Manufacturer" SortExpression="Vehicle_Make">
                    <HeaderStyle HorizontalAlign="Center" BackColor="Silver" ForeColor="Black" Font-Bold="True">
                    </HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Vehicle_Price" HeaderText="Price ($)" SortExpression="Vehicle_Price">
                    <HeaderStyle HorizontalAlign="Center" BackColor="Silver" ForeColor="Black" Font-Bold="True">
                    </HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Vehicle_Contact" HeaderText="Contact Details" SortExpression="Vehicle_Contact">
                    <HeaderStyle HorizontalAlign="Center" BackColor="Silver" ForeColor="Black" Font-Bold="True">
                    </HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <%--<asp:ImageField DataImageUrlField="Vehicle_Picture" HeaderText="Picture" HeaderStyle-BackColor="Silver"
                    HeaderStyle-Font-Underline="true" DataAlternateTextFormatString="{0}">
                    <ControlStyle Height="100px" Width="100px" />
                    <HeaderStyle BackColor="Silver" Font-Underline="True"></HeaderStyle>OnRowDataBound="GridView1_RowDataBound"
                </asp:ImageField>--%>
                <asp:TemplateField HeaderText="Picture" HeaderStyle-BackColor="Silver" HeaderStyle-Font-Underline="true">
                    <ControlStyle Height="100px" Width="100px" />
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("Vehicle_Picture") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# Eval("ID","Car_Details.aspx?ID={0}") %>'
                            runat="server">
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Vehicle_Picture") %>' CssClass="imgsize" />
                        </asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <asp:SqlDataSource ID="camcDB" runat="server" ConnectionString="<%$ ConnectionStrings:carsconn %>"
        ProviderName="<%$ ConnectionStrings:carsconn.ProviderName %>" SelectCommand="SELECT * FROM [Vehicle_Overview]">
    </asp:SqlDataSource>
</asp:Content>
